package rabbit.aop;

import java.sql.SQLException;

import com.ibatis.sqlmap.client.SqlMapClient;

public class ReportDao {
	private SqlMapClient sqlMapClient;
	public ReportDao(SqlMapClient sqlMapClient){
		this.sqlMapClient=sqlMapClient;
	}
	public void insertMoney(int money) throws SQLException {
		sqlMapClient.insert("happy.insertMoney",money);
	}
	public Object showMoney(int money) throws SQLException {
		return sqlMapClient.queryForObject("happy.showMoney",money);
	}
	public void updateCnt(int money) throws SQLException{
		sqlMapClient.update("happy.updateCnt",money);
	}
	
}
